//g++ mul_1.cpp -fopenmp

#include<iostream>
#include<omp.h>
#include<stdio.h>
#include<ctime>
using namespace std;

#define MAX_SIZE 32768

int main()
{
	clock_t start,end;
	int k ;
	int A[MAX_SIZE],B[MAX_SIZE];

	start = clock();
	#pragma omp parallel for schedule(static,16)
		for(k = 0;k<MAX_SIZE;k++){
			A[k]=k*k;
		}
	end = clock();
	cout<<endl<<end-start<<endl; 

	start = clock();
//	#pragma omp parallel for schedule(static,16)
	for(k = 0;k<MAX_SIZE;k++){
			B[k]=k*k;
		}
	end = clock();
	cout<<endl<<end-start<<endl; 

     return 0;
}
